package br.edu.ufersa.scrumgame.dao;

import java.util.HashMap;
import java.util.Map;

import javax.ejb.Stateless;

import br.edu.ufersa.scrumgame.modelo.Papel;

@Stateless
public class PapelDAO extends GenericDAO<Papel> {

	public PapelDAO() {
		super(Papel.class);
	}

	public Papel findByDescricao(String descricao) {
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put("descricao", descricao);

		return super.findOneResult("Papel.findByDescricao", parameters);
	}

}
